//
//  SGLoginTextField.m
//  HuaMuJinRong
//
//  Created by mac on 16/4/25.
//  Copyright © 2016年 EIMS. All rights reserved.
//

#import "SGLoginTextField.h"

@implementation SGLoginTextField

- (void)drawPlaceholderInRect:(CGRect)rect
{
    // 设置富文本属性
    NSMutableDictionary *dic = [NSMutableDictionary dictionary];
    [dic setObject:self.font forKey:NSFontAttributeName];
    [dic setObject:KGrayColor forKey:NSForegroundColorAttributeName];
    CGPoint point = CGPointMake(0, (rect.size.height - self.font.lineHeight) * 0.5);
    [[self placeholder] drawAtPoint:point withAttributes:dic];
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/

@end
